package com.example.my_flea_street.service.impl;

import com.example.my_flea_street.Mapper.HomeMapper;
import com.example.my_flea_street.bean.Banner;
import com.example.my_flea_street.service.HomeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service(value = "homeService")
public class HomeServiceImpl implements HomeService {

    @Resource
    HomeMapper homeMapper;


    @Override
    public List<Banner> getBanner() {
        return homeMapper.getBanner();
    }

    @Override
    public List<String> getHeads(int category) {
        return homeMapper.getHeads(category);
    }
}
